{% if offline %}
<script>
    {% include 'wrapper/assets/jquery-latest.min.js' %}
    {% include 'wrapper/assets/bootstrap.min.js' %}
</script>
{% else %}
<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
{% endif %}
<script>
    $(function () {
        $('[data-toggle="tooltip"]').tooltip()
    })

    $("a[href^='#'].anchor").on('click', function (e) {

        // prevent default anchor click behavior
        e.preventDefault();

        // store hash
        var hash = this.hash;

        // animate
        $('html, body').animate({
            scrollTop: $(hash).offset().top
        }, 300, function () {

            // when done, add hash to url
            // (default click behaviour)
            window.location.hash = hash;
        });

    });
</script>

{#<script>#}
{#    $('#mySelect').on('change', function (e) {#}
{#  var $optionSelected = $("option:selected", this);#}
{#  $optionSelected.tab('show')#}
{#});#}
{##}
{#</script>#}